#include "StdAfx.h"
#include "PathsHelper.h"

System::String^ PathsHelper::GetRoot()
{
	System::String^ executableName = System::Windows::Forms::Application::ExecutablePath;
	System::IO::FileInfo^ executableFileInfo = gcnew System::IO::FileInfo(executableName);
	//System::String^ executableDirectoryName = executableFileInfo->DirectoryName;
	System::String^ parentName = executableFileInfo->Directory->Parent->FullName;

	return parentName;
}

System::String^ PathsHelper::GetMnistDatabaseDirectory()
{
	System::String^ mnistDatbase = System::IO::Path::Combine(GetRoot(), "MnistDatabase");
	return mnistDatbase;
}

System::String^ PathsHelper::GetSampleNetworksDirectory()
{
	System::String^ mnistDatbase = System::IO::Path::Combine(GetRoot(), "Sample");
	return mnistDatbase;
}

System::String^ PathsHelper::GetMyDocumentDirectory()
{
	System::String^ mnistDatbase = System::Environment::GetFolderPath( System::Environment::SpecialFolder::MyDocuments);
	return mnistDatbase;
}


